const express = require('express');
const ejs = require('ejs');

const objArr = require('./data/userdata.json');

const app = express();

app.set("views",__dirname+'/html');
app.engine('html',ejs.renderFile);

app.get('/',(req,res)=>{
    // let arr = [1,2,3,4];
    
    res.render('index.html',{objArr});
})


app.listen(80,()=>{
    console.log("启动成功");
});